import request from '@/utils/request'

// 登陆-api
export function loginByMobile(mobile, password) {
  const data = {
    mobile,
    password,
    login_type: 1
  }
  return request({
    url: '/api/v1/login',
    method: 'post',
    data
  })
}

// 登出
export function logout() {
  return request({
    url: '/api/v1/logout',
    method: 'post'
  })
}

// 获取用户开放路由
export function getUserRoute() {
  return request({
    url: '/admin/v1/permission/user',
    method: 'get'
  })
}

